package com.qingcheng.controller.goods;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.pojo.goods.Brand;
import com.qingcheng.service.goods.BrandService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ProjectName: qingchengcode
 * @ClassName: BrandController
 * @Time: 2019/6/21
 * @Author: Janus
 * @Description:
 * @Experience:
 */
@RestController
@RequestMapping("/brand")
public class BrandController {
    @Reference
    BrandService brandService;
@RequestMapping("/findAll")
    public List<Brand> findAll(){
        return brandService.findAll();
    }



}
